package flyweight;

public class Client {
    public static void main(String[] args) {
        WebsiteFactory factory = new WebsiteFactory();
        Website website1 = factory.getConcreteWebsite("新闻");
        website1.use();
        Website website2 = factory.getConcreteWebsite("博客");
        website2.use();
    }
}
